﻿//删除好友居中
var newscanclick=true;//防止多次点击
function newsgohref(e){
    if(e.dataset.id&&newscanclick){
        newscanclick=false;
        var neid=e.dataset.id;
        var pcUrl=true;
        var errorUrl=/环球网|1905电影网|中国会计视野|编织人生网|IT之家/;
        if(e.dataset.sitename){if(errorUrl.test(e.dataset.sitename)){pcUrl=false;}}
        //增加点击数
        $.ajax({
            type:"post",
            datatype:"json",
            url:addcounturl,
            data:{"newsId":neid},
            success:function(d){
                newscanclick=true;
                if(pcUrl){location.href="newsdetail.html?newsid="+neid+"#fromuser="+id;}
                else{location.href="http://www.pulu.com/weixin/newsdetail.html?newsid="+neid+"#fromuser="+id;}
            }
        });
    }
}

var windowhei=window.screen.availHeight;

//模态框淡入淡出
var overflowlist=document.getElementsByClassName("overflow");
var modalbg=document.getElementsByClassName("modal_bg")[0];
var modal=document.getElementsByClassName("action_menu_container")[0];
//var cancel=document.getElementsByClassName("cancel")[0];
var timer;
for(var i=0;i<overflowlist.length;i++){
    overflowlist[i].onclick=function(){
        modalbg.style.display="block";
        modal.style.display="block";
    }
};
function changeclass(){
    modalbg.className='modal_bg';
    modal.className='action_menu_container';
    clearTimeout();
    timer=null;
    changedisplay();
};
function changedisplay(){
    modalbg.style.display="none";
    modal.style.display="none";
};
document.getElementsByClassName("mweb_modal_back_button")[0].onclick=function(){history.go(-1);};

var urlfrom=window.location.href;
var regotherid=/(otherid=)([a-zA-Z0-9]*)/;
var otherid = urlfrom.match(regotherid).splice("=")[2];
if(otherid==id){location.href="setpage.html";}
//点击展开大图
$(".photo").click(function(){
    if(haveimg=="yes"){
        var imgheight=$("#showimg").height();
        var bigheight=window.screen.availHeight;
        $("#digimgplace").height(bigheight);
        if(bigheight>imgheight){
            $("#showimg").css("marginTop",(bigheight-imgheight)/2);
        }
        $("#digimgplace").css("display","block");
        $("#page_wrapper").css("display","none");
    }
});
//关闭大图
$("#digimgplace").click(function(){
    $("#digimgplace").css("display","none");
    $("#page_wrapper").css("display","block");
});
//经验金钱判断能否进入------------------------------------
function moneytest(e){
    //判断能不能去看详情页
    var euserid= e.dataset.euser;
    var thiseid= e.dataset.eid;
    var score=e.dataset.score;
    $.ajax({
        type:"post",
        datatype:"json",
        url:textexpurl,
        data:{"quserId":euserid,"contentId":thiseid,"userId":id,"score":score},
        success:function(d){
            //console.log(d);
            if(d.Message=="自己的经验"||d.Message=="已付费"||d.Message=="未付费"){
                $.cookie("paynum",thiseid);
                location.href='shareexppage.html?eid='+thiseid;
            }else{
                $("body").css("overflow","hidden");
                $(".moneyinfomob").css("display","block");
            }
        }
    });
}
//编辑资料 页面跳转

var haveimg="no";//控制能否点击头像
var mynick= $.cookie("MYNICK");
var isfriend="isstrange";//
var strangesee;
//$().ready(function(){
    //能不能看 我是否查看过此人
    $.ajax({
        type:"GET",
        url:getHasVisited+"?myuserId="+ $.cookie("MYID")+"&userId="+otherid,
        success:function(d){

            if(!d.Data){
                //能不能看
                $.ajax({
                    type:"GET",
                    url:getCanBeVisited+"?userId="+ otherid,
                    success:function(d){

                        if(!d.Data){
                            $("#paySeeDiv1").css("display","block");
                            $("html").css("overflow","hidden");
                        }
                        else{
                            $("#paySeeDiv").css("display","block");
                            $("html").css("overflow","hidden");
                        }
                    }
                });
            }else{

                $("#page_wrapper").attr("class","PageWrapper mweb");
            }
        }
    });
    //用户信息
    var otherpeoplenick="";
    var showFollowBtn=true;
    $.ajax({
        type: "post",
        //提交的网址
        url: "https://www.pulu.com/webapi/api/PuluUser/GetUserProc",
        //返回数据的格式
        data:{ "myUserId": id,"userId":otherid},
        datatype: "json",
        //成功返回之后调用的函数
        success: function (data) {
            //判断关注层级
            if(data.Data.Tlevel<2&&data.Data.Mlevel<2){

                $("#followBtn").css("display","none");
                showFollowBtn=false;
            }
            //名片墙
            $(".page_title").html(data.Data.userNick);
            $("title").html("Pulu-"+data.Data.userNick+"的铺路");
            otherpeoplenick=data.Data.userNick;
            $("#nickname").html(data.Data.userNick);
            if(data.Data.userAva){
                haveimg="yes";
                $(".photo").append("<img class='profile_photo_img' src='http://42.62.66.198:8003/"+data.Data.userAva+"'>");
                $("#digimgplace").css("background-image","url('http://42.62.66.198:8003/"+data.Data.userAva+"')");
            }
            if(data.Data.userSex===1){
                document.getElementById("sex1").style.display="inline-block";
            }else if(data.Data.userSex===0){
                document.getElementById("sex2").style.display="inline-block";
            }
            //if(data.Data.realName){$("#cover").html("("+data.Data.realName+")")}
            //公司排名
            if(data.Data.companyRank){
                switch(data.Data.companyRank){
                    case 4 : $("#companyLevelNum").html("前10%");break;
                    case 3 : $("#companyLevelNum").html("前11%-30%");break;
                    case 2 : $("#companyLevelNum").html("前31%-60%");break;
                    case 1 : $("#companyLevelNum").html("前61%-99%");break;
                }
            }
            //职能级别
            if(data.Data.jobId){
                switch(data.Data.jobId){
                    case 3 : $("#stationName").html("管理岗，技术岗");break;
                    case 2 :
                        $("#stationName").html("技术岗");
                        $("#manayeLevelDiv").css("display","none");
                        break;
                    case 1 :
                        $("#stationName").html("管理岗");
                        $("#keyWordDiv").css("display","none");
                        break;
                }
                if(data.Data.jobId!=1){
                    var len=data.Data.userTechKeyWords.length;
                    for(var a=0;a<len;a++){
                        var rankWord="";
                        switch(data.Data.userTechKeyWords[a].tecRank){
                            case 4 : rankWord="前10%";break;
                            case 3 : rankWord="前11%-30%";break;
                            case 2 : rankWord="前31%-60%";break;
                            case 1 : rankWord="前61%-99%";break;
                        }
                        $("#keyWordDiv").append(
                            '<div>' +
                            '<span>'+data.Data.userTechKeyWords[a].keyword+'</span>' +
                            '<span class="rt">'+rankWord+'</span>' +
                            '</div>'
                        )
                    };
                    len=null;a=null;rankWord=null;
                }
            }
            $("#myword").html(data.Data.userSign);
            //管理级别
            if(data.Data.manageRank){
                switch(data.Data.manageRank){
                    case 1 :$("#personalLevelNum").html("普通");break;
                    case 2 :$("#personalLevelNum").html("中层");break;
                    case 3 :$("#personalLevelNum").html("高层");break;
                }
            }
            ////陌生人可见
            //if(data.Data.strangeSeeStatus===0){
            //    strangesee="no";
            //}
            //if(isfriend=="isstrange"){
            //    if(data.Data.strangeSeeStatus===0){
            //        $("#lastnewnote").css("display","none");
            //    }else{
            //        $("#lastnewnote").css("display","block");
            //    }
            //}
            //基本信息
            if(data.Data.locationCity&&data.Data.locationCity!="null"){
                $("#city").html(data.Data.locationCity);
            }
            $("#educationword").html(data.Data.userEducation);
            //var jobs="";
            //for(var i= 0;i<data.Data.jobs.length;i++){
            //    jobs+=data.Data.jobs[i].typename+"&nbsp;&nbsp;"
            //}
            //$("#myjobs").html(jobs);
            //var hobby="";
            //for(var r= 0;r<data.Data.hobbys.length;r++){
            //    hobby+=data.Data.hobbys[r].typename+"&nbsp;&nbsp;"
            //}
            var news=[];
            if(data.Data.userHit&&data.Data.userHit.length>0){
                for(var n= 0;n<data.Data.userHit.length;n++){
                    news.push("<span>"+data.Data.userHit[n].typename+"</span>");
                }
                news=news.join(" ");
            }
            //我的订阅
            $("#progressionName").html(data.Data.newJobs);
            $("#mynews").html(news);
            //$("#myhobby").html(hobby);
            $("#visitedcity").html(data.Data.visitedCity);
            //铺路信息
            $("#scoreword").html(Math.round(parseFloat(data.Data.earnScore))/100+"元");
            $("#scorewordtwo").html(Math.round(parseFloat(data.Data.expenditure))/100+"元");
            $("#myquestionCount").html(data.Data.myQuestionCount+"条");
            $("#myanswerCount").html(data.Data.myAnswerCount+"条");
            $("#myexpCount").html(data.Data.myExpCount+"条");
            $("#mycollecttionCount").html(data.Data.myCollectionCount+"条");
            $("#myresCount").html(data.Data.ZyCount+"条");
            $("#mysendnewsCount").html(data.Data.ZxCount+"条");
            //获取关注列表
            $.ajax({
                type:"get",
                url:getPuluTopLayer+"?userId="+ $.cookie("MYID"),
                success:function(d){
                    //console.log(d);
                    if(d.Data){
                        for(var i=0;i< d.Data.length;i++){
                            if(d.Data[i].userId==otherid){
                                //console.log("yes");
                                $("#cancelFollowBtn").css("display","block");
                                if(showFollowBtn){

                                    $("#followBtn").css("display","none");
                                }
                               else{
                                    $("#followBtn").remove();
                                }
                            }
                        }
                    }else{
                        //console.log("no");
                        if(showFollowBtn){
                            $("#followBtn").css("display","block");
                            $("#cancelFollowBtn").css("display","none");
                        }else{
                            $("#cancelFollowBtn").remove();
                        }
                    }
                }
            });
        }
    });
    ////共同好友
    //$.ajax({
    //    type:"get",
    //    url:"https://www.pulu.com/webapi/api/puluuser/GetCommonFriends?userid1="+id+"&userid2="+otherid,
    //    datatype:"json",
    //    success:function(data){
    //        console.log(data);
    //        if(data.Data&&data.Data.length>0){
    //            $("#myfriend p").html(data.Data.length+"位共同好友");
    //        }else{
    //            $("#myfriend p").html("0位共同好友");
    //        }
    //    }
    //});
    //$("#myfriend").click(function(){
    //    location.href="relapeoplelist.html?otherid="+otherid;
    //});
    //最新动态列表页
    $("#lastinfopage").click(function(){
        $.cookie("otherid",otherid);
        location.href="lastinfo.html?"+isfriend;
    });
    //最新动态---------------
    $.ajax({
        type:"get",
        datatype:"json",
        url:"https://www.pulu.com/webapi/api/puluuser/GetThreeLog?userId="+otherid+"&currentIndex=1&pageSize=3",
        //url:"https://www.pulu.com/webapi/api/puluuser/GetPulu_log_dealByUserId?userId="+otherid+"&currentIndex=1&pageSize=3",
        success:function(data){
            $("#setpagenewslist div").remove();
            if(!data.Data||data.Data.length==0){
                //console.log("没有最新");
                //$("#lastnewnote").remove();
            }else{
                for(var i=0;i<data.Data.length;i++){
                    var tim=getDateDiff(getDateTimeStamp(data.Data[i].cTime));
                    if(!tim){tim="刚刚"};
                    if(data.Data[i].type===1){
                        $("#sixnum").append("<div class='pagedlist_item'> <div class='feed_item feed_type_question' style='border-bottom:none;'><div class='ContentFooter QuestionFooter rt'> <span class='answer_count'>"+tim+"</span></div><h2 class='no_highlight'> <a class='question_link' onclick='newsgohref(this)' data-sitename='"+data.Data[i].sitename+"' data-id='"+data.Data[i].qid+"'>"+data.Data[i].title+"</a></h2></div></div>");
                    }
                    else if(data.Data[i].type===2){
                        $("#sixnum").append("<div class='pagedlist_item'> <div class='feed_item feed_type_question' style='border-bottom:none;'><div class='ContentFooter QuestionFooter rt'> <span class='answer_count'>"+tim+"</span></div><h2 class='no_highlight'> <a class='question_link' href='questiondetail.html?qid="+data.Data[i].qid+"#fromuser="+id+"'>"+codetoface(data.Data[i].title)+"</a></h2></div></div>");
                    }
                    else{
                        if(data.Data[i].title){
                            $("#sixnum").append("<div class='pagedlist_item'> <div class='feed_item feed_type_question' style='border-bottom:none;'><div class='ContentFooter QuestionFooter rt'> <span class='answer_count'>"+tim+"</span></div><h2 class='no_highlight'> <a class='question_link' href='shareexppage.html?eid="+data.Data[i].qid+"#fromuser="+id+"'>"+codetoface(data.Data[i].title)+"</a></h2></div></div>");
                        }
                    }
                }
            }

            //$("#lastnewnote .InputMixin").before(code);
        }
    });
    //点击 添加关注
    $("#followBtn").click(function(){
        var puluTopLayer={};
        puluTopLayer.userId=otherid;
        puluTopLayer.ownerId=$.cookie("MYID");
        $.ajax({
            type:"POST",
            url:addPuluTopLayer,
            data:{"PuluTopLayer":puluTopLayer},
            success:function(d){
                //console.log(d);
                if(d.Code=="TRUE"){
                    $("#followBtn").css("display","none");
                    if(showFollowBtn){
                        $("#cancelFollowBtn").css("display","block");
                    }
                }
            }
        })
    });
    $("#cancelFollowBtn").click(function(){
        $.ajax({
            type:"POST",
            url:deletePuluTopLayer,
            data:{"ownerId":$.cookie("MYID"),"userId":otherid},
            success:function(d){
                console.log(d);
                if(d.Code=="TRUE"){
                    $("#cancelFollowBtn").css("display","none");
                    if(showFollowBtn){
                        $("#followBtn").css("display","block");
                    }
                }
            }
        })
    });
    //付费查看
    var isPaySee=false;
    $("#paySeeDiv .okBtn").click(function(){
        if(!isPaySee){
            isPaySee=true;
            $.ajax({
                type:"POST",
                url:payFeeUserInfo,
                data:{"payfrom": $.cookie("MYID"),"payto":otherid},
                success:function(d){
                    $("#paySeeDiv").css("display","none");
                    if(d.Message=="账户余额不足"){
                        $("#paySeeDiv2").css("display","block");
                    }else{
                        console.log(d);
                        isPaySee=true;
                        $("html").css("overflow","auto");
                        $("#page_wrapper").attr("class","PageWrapper mweb");
                    }
                }
            })
        }
    });
    //付费取消
    $("#paySeeDiv .cancelBtn").click(function(){
        history.go(-1);
    });
    //去充值
    function goRecharge(){
        if(is_weixn()){
            location.href="http://www.pulu.com/weixin/recharge.html";
        }else{
            location.href="http://www.pulu.com/weixin/rechargepc.html";
        }
    }

    //----------------------------
    ////好友列表
    //$.ajax({
    //    datatype:"json",
    //    type:"get",
    //    url:"https://www.pulu.com/webapi/api/PuluGoodFriend/GetByUserId?userId="+otherid,
    //    success:function(d){
    //        //console.log("别人的好友列表");
    //        //console.log(d);
    //        if(d.Data.length>0){
    //            for(var i=0;i<d.Data.length;i++){
    //                //已经加好友了
    //                if(d.Data[i].friendId===id){
    //                    isfriend="isfriend";
    //                    //console.log("已经是好友了");
    //                    $("#lastnewnote").css("display","block");//30条
    //                    $("#otherset").css("display","block");
    //                    $("#otherpageaddfbtn").css("display","none");
    //                    $("#otherpagedeletebtn").css("display","block");
    //                    $("#lastinfopage p span").html("最新内容");
    //                    //最新动态列表页箭头显示
    //                    $("#lastinfopage").css("display","block");
    //                    //判断是否为密友
    //                    var str=d.Data[i].isMiYou.toString();
    //                    if(str==="false"){
    //                        //$("#otherpageaddgbtn").css("display","block");
    //                    }else if(str==="true"){
    //                        $("#otherpageaddgbtn").css("display","none");
    //                    }
    //                    break;
    //                }else{
    //                    isfriend="isstrange";
    //                    if(strangesee==="no"){
    //                        $("#lastnewnote").css("display","none");
    //                    }
    //                    //console.log("还不是好友");
    //                    $("#lastinfopage span").html("最新30条内容");
    //                    $("#otherpageaddfbtn").css("display","block");
    //                    $("#otherpageaddgbtn").css("display","none");
    //                    $("#otherpagedeletebtn").css("display","none");
    //                }
    //            }
    //        }
    //
    //    }
    //});
    ////获取不看他的动态
    //$.ajax({
    //    datatype:"json",
    //    type:"get",
    //    url:"https://www.pulu.com/webapi/api/Notlookit/GetBy2Id?userId="+id+"&friendId="+otherid,
    //    success:function(d){
    //        console.log("是否不看他的动态");
    //        console.log(d);
    //        var str= d.Data.toString();
    //        if(str==="false"){
    //            $("#donotseeheimg1").css("display","block");
    //            $("#donotseeheimg2").css("display","none");
    //            //newdata();//获取最新动态
    //        }else if(str==="true"){
    //            $("#donotseeheimg1").css("display","none");
    //            $("#donotseeheimg2").css("display","block");
    //        }
    //    }
    //});
    ////获取不让他看我的动态
    //$.ajax({
    //    datatype:"json",
    //    type:"get",
    //    url:"https://www.pulu.com/webapi/api/Forbiditlook/GetBy2Id?userId="+id+"&friendId="+otherid,
    //    success:function(d){
    //        var str= d.Data.toString();
    //        if(str==="false"){
    //            document.getElementById("donotseemeimg1").style.display="block";
    //            document.getElementById("donotseemeimg2").style.display="none";
    //        }else if(str==="true"){
    //            document.getElementById("donotseemeimg1").style.display="none";
    //            document.getElementById("donotseemeimg2").style.display="block";
    //        }
    //    }
    //});
    ////不看他的动态操作
    //document.getElementById("donotseehe").onclick=function(){
    //    if(document.getElementById("donotseeheimg1").style.display==="block"){
    //        document.getElementById("donotseeheimg1").style.display="none";
    //        document.getElementById("donotseeheimg2").style.display="block";
    //        $.ajax({
    //            type:"post",
    //            datatype:"json",
    //            url:"https://www.pulu.com/webapi/api/Notlookit/Addpulu_notlookit",
    //            data:{"userId":id,"friendId":otherid},
    //            success:function(d){
    //
    //
    //            }
    //        })
    //    }else if(document.getElementById("donotseeheimg2").style.display==="block"){
    //        document.getElementById("donotseeheimg1").style.display="block";
    //        document.getElementById("donotseeheimg2").style.display="none";
    //        $.ajax({
    //            type:"post",
    //            datatype:"json",
    //            url:"https://www.pulu.com/webapi/api/Notlookit/Deletepulu_notlookit",
    //            data:{"userId":id,"friendId":otherid},
    //            success:function(d){
    //
    //            }
    //        })
    //    }
    //};
    ////不让他看我的的动态操作
    //document.getElementById("donotseeme").onclick=function(){
    //    if(document.getElementById("donotseemeimg1").style.display==="block"){
    //        document.getElementById("donotseemeimg1").style.display="none";
    //        document.getElementById("donotseemeimg2").style.display="block";
    //        $.ajax({
    //            type:"post",
    //            datatype:"json",
    //            url:"https://www.pulu.com/webapi/api/Forbiditlook/Addpulu_forbiditlook",
    //            data:{"userId":id,"friendId":otherid},
    //            success:function(d){
    //
    //            }
    //        })
    //    }else if(document.getElementById("donotseemeimg2").style.display==="block"){
    //        document.getElementById("donotseemeimg1").style.display="block";
    //        document.getElementById("donotseemeimg2").style.display="none";
    //        $.ajax({
    //            type:"post",
    //            datatype:"json",
    //            url:"https://www.pulu.com/webapi/api/Forbiditlook/Deletepulu_forbiditlook",
    //            data:{"userId":id,"friendId":otherid},
    //            success:function(d){
    //
    //            }
    //        })
    //    }
    //};
    ////添加密友
    //$("#otherpageaddgbtn").click(function(){
    //    $.ajax({
    //        type:"post",
    //        datatype:"json",
    //        url:addmiyouurl,
    //        data:{"userId":id,"miyouId":otherid},
    //        success:function(d){
    //            $("#sendfriendinfook").css("display","block");
    //            closefirendnote();
    //            $("#otherpageaddgbtn").css("display","none");
    //        }
    //    })
    //});
//环信添加好友请求
//    //环信建立连接
//    var conn = new WebIM.connection({
//        https: WebIM.config.https,
//        url: WebIM.config.xmppURL,
//        isAutoLogin: WebIM.config.isAutoLogin,
//        isMultiLoginSessions: WebIM.config.isMultiLoginSessions
//    });
//    //登录
//    var options = {
//        apiUrl: WebIM.config.apiURL,
//        user:id,
//        pwd:id,
//        appKey: "pulu#pulu"
//    };
//    conn.open(options);
    //添加好友  （确定好友 及向服务器存储信息在个人设置页面）
    //$("#otherpageaddfbtn").click(function(){
    //    //console.log("执行一遍了");
    //    if(!$.cookie("MYNICK")){$("#addinputbox div input").val("hi 你好");}
    //    else{$("#addinputbox div input").val("我是"+mynick);}
    //    $("#addfriendplace").css("display","block");
    //    $("#page_wrapper").css("display","none");
    //});
    //确定添加好友
    //$("#okaddbtn").click(function(){
    //    if(document.querySelector("#addinputbox div input").value&&document.querySelector("#addinputbox div input").value.length>0&&!document.querySelector("#addinputbox div input").value.match(/^\s+$/g)){
    //        //发送好友模板
    //        $.ajax({
    //            type:"post",
    //            url:savefriendnoteurl0,
    //            data:{"userId": $.cookie("MYID"),"friendId":otherid,"msg":""},
    //            success:function(d){
    //
    //            }
    //        });
    //        conn.subscribe({
    //            to: otherid,
    //            message:document.querySelector("#addinputbox div input").value
    //        });
    //        conn.listen({
    //            onOpened: function ( message ) {          //连接成功回调
    //                //如果isAutoLogin设置为false，那么必须手动设置上线，否则无法收消息
    //                conn.setPresence();
    //                console.log("连接成功");
    //            },
    //            onRoster: function ( message ) {
    //                //console.log(message);
    //            }         //处理好友申请
    //        });
    //        $("#sendfriendinfook").css("display","block");
    //        $("#addfriendplace").css("display","none");
    //        $("#page_wrapper").css("display","block");
    //        closefirendnote();
    //    }
    //    else{
    //        alert("请填写申请信息")
    //    }
    //});
    //function closefirendnote(){
    //    setTimeout(function(){
    //        $("#sendfriendinfook").css("display","none");
    //    },1000);
    //}
    ////取消添加好友
    //$("#addfriendgobackbtn").click(function(){
    //    $("#addfriendplace").css("display","none");
    //    $("#page_wrapper").css("display","block");
    //});
    ////删除好友页面
    //$("#otherpagedeletebtn").click(function(){
    //    $("#delfriendplace").css("display","block");
    //    console.log(windowhei);
    //    //$("body").css("maxHeight",windowhei+"px");
    //    //
    //    //$("body").css("overflow","hidden");
    //    $("body").css("minHeight","auto");
    //    $("#page_wrapper").css("height",windowhei-88+"px");
    //    $("#page_wrapper").css("overflow","hidden");
    //});
    ////删除好友按钮
    //$("#yesdelfriendbtn").click(function(){
    //    conn.removeRoster({
    //        to: otherid,
    //        success: function () {//删除成功
    //            console.log("成功删除好友");
    //            conn.unsubscribed({
    //                to: otherid
    //            });
    //            $.ajax({
    //                type:"post",
    //                datatype:"json",
    //                url:deletefriendurl,
    //                data:{"userId":id,"friendId":otherid},
    //                success:function(d){
    //                    $.cookie("delFriend","true");//控制返回列表页
    //                    console.log("删除好友成功");
    //                    location.reload();
    //                }
    //            })
    //        },
    //        error : function () {}//删除失败
    //    });
    //});
    ////取消删除好友
    //$("#nodelfriendbtn").click(function(){
    //    $("#delfriendplace").css("display","none");
    //    //$("body").css("height","auto");
    //    //$("body").css("overflow","auto");
    //    $("#page_wrapper").css("height","auto");
    //    $("#page_wrapper").css("overflow","auto");
    //});
    ////聊天跳转
    //$("#otherpagechatbtn").click(function(){
    //    location.href="chatingonepeople.html?otherid="+otherid;
    //})
//});